<?php
/**
 * 用户信息反馈
 */
use yii\widgets\LinkPager;
?>
<div class="tpl-content-wrapper">
    <div class="row-content am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title  am-cf">意见列表</div>


                    </div>
                    <div class="widget-body  am-fr">

                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                            <div class="am-form-group">
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                        <button type="button" class="am-btn am-btn-default am-btn-success"><span
                                                class="am-icon-plus"></span>新增
                                        </button>
                                        <button type="button" class="am-btn am-btn-default am-btn-secondary"><span
                                                class="am-icon-save"></span> 保存
                                        </button>
                                        <button type="button" class="am-btn am-btn-default am-btn-warning"><span
                                                class="am-icon-archive"></span> 审核
                                        </button>
                                        <button type="button" class="am-btn am-btn-default am-btn-danger"><span
                                                class="am-icon-trash-o"></span> 删除
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                            <div class="am-form-group tpl-table-list-select">
                                <select data-am-selected="{btnSize: 'sm'}">
                                    <option value="option1">所有类别</option>
                                    <option value="option2">完善中...</option>
                                    <option value="option3">完善中...</option>
                                    <option value="option3">完善中...</option>
                                    <option value="option3">完善中...</option>
                                    <option value="option3">完善中...</option>
                                    <option value="option3">完善中...</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                            <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                <input type="text" class="am-form-field ">
                                <span class="am-input-group-btn">
            <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search"
                    type="button"></button>
          </span>
                            </div>
                        </div>

                        <div class="am-u-sm-12">
                            <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black "
                                   id="example-r">
                                <thead>
                                <tr>
                                    <th>姓名</th>
                                    <th>意见内容</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php foreach($model as $v):?>
                                    <tr class="gradeX">
                                        <td><?php echo $v->name;?></td>
                                        <td><?php echo $v->content;?></td>
                                        <td><?php if($v->status==1){echo "显示";}else{echo "隐藏";}?></td>

                                        <td>
                                            <div class="tpl-table-black-operation">
                                                <a href="<?php echo \yii\helpers\Url::to(['index/display','id'=>$v->id,'kind'=>0]);?>">
                                                    <i class="am-icon-pencil"></i> 显示
                                                </a>
                                                <a href="<?php echo \yii\helpers\Url::to(['index/delete','id'=>$v->id,'kind'=>2]);?>" class="tpl-table-black-operation-del">
                                                    <i class="am-icon-trash"></i> 删除
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach;?>
                                <!-- more data -->
                                </tbody>
                            </table>
                        </div>
                        <div class="am-u-lg-12 am-cf">

                            <div class="am-fr">
                                <ul class="am-pagination tpl-pagination am-pagination-right">
                                    <?php
                                    echo LinkPager::widget([
                                        'pagination' => $page,
                                        'firstPageLabel' => '首页',
                                        'lastPageLabel' => '尾页',
                                        'maxButtonCount' => 5,
                                        'options' => ['class' => 'am-pagination am-pagination-right'],
                                    ]);
                                    ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>